home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1113 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: gidora.kralizec.net.au!root
  2. From: Ross McKay <rosko@zeta.org.au>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Code loses this pointer value
  5. Date: Tue, 09 Jan 1996 23:00:10 -0800
  6. Organization: Soft Technologies
  7. Message-ID: <30F363FA.889@zeta.org.au>
  8. References: <1996Jan9.021817.24635@jarvis.cs.toronto.edu>
  9. NNTP-Posting-Host: dialup41.syd1.zeta.org.au
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b3 (Win16; I)
  14.  
  15. Victor Ng-Thow-Hing wrote:
  16. > Hi everyone,
  17. > I have a particularly nasty bug in my C++ class code. Basically, the code
  18. > loses track of the this pointer value that points to the object that is
  19. > calling a member function. 
  20. > [snip]
  21.  
  22. Victor, I saw a bug like this on a Windoze program once... the program
  23. stack had been corrupted, during a compound function call. Check for
  24. things that may be corrupting your stack. (of course, it may be
  25. something else, like a stray pointer corrupting another object which
  26. references your object :-)
  27.  
  28. > Victor.
  29.  
  30. -- 
  31. // --------------------------------------------------------------------- //
  32. // Ross McKay        | email: rosko@zeta.org.au | The opinions expressed //
  33. // Soft Technologies | snail: GPO Box 562,      | are my own, not those  //
  34. // Sydney, Australia |        Sydney 2001, Aus. | of my employers.       //
  35. // --------------------------------------------------------------------- //
  36. //  "Circumcision is no skin off my nose"  (grafitti seen in Ultimo)     //
  37. // --------------------------------------------------------------------- //
  38.